package java68_2;

import java.util.Scanner;

public class Top4 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        float sum=0,score;
        int count=0;
        for(int i=1;i<=3;i++){
            sum=0;
            for(int j=1;j<=4;j++){
                System.out.print("请输入"+i+"班第"+j+"位同学的成绩:");
                score=in.nextFloat();
                sum+=score;
                if(score<85)
                    continue;

                count++;
            }
            float avg=sum/4;
            System.out.println(i+"班的平均分是:"+avg);
        }
        System.out.println("超过85分的人数是"+count+"人");
    }
}
